const mongoose = require('mongoose')

const Schema = mongoose.Schema({  
    categories: [{type: mongoose.SchemaTypes.ObjectId , ref: 'Category' }],
    title: { type: String },
    body:{ type:String }
},{
    timestamps:true
})




module.exports = mongoose.model('Article',Schema)